
import axios from "axios"
const BASE_URL="http://music.cpengx.cn"

//获取banner
export let getBanner = (type=1)=>{
    return axios.get(`${BASE_URL}/banner?type=${type}`)
}

//获取歌单
export let personalized = ()=>{
    return axios.get(`${BASE_URL}/personalized`)
}

//获取歌单详情
export let getPlayListDetail = (id)=>{
    return axios.get(`${BASE_URL}/playlist/detail?id=${id}`)
}

//获取歌单详情
export let getSong = (id)=>{
    return axios.get(`${BASE_URL}/song/url?id=${id}`)
}